package dk.javacode.proxy.greeters;

import dk.javacode.proxy.SimpleInterceptor;
import dk.javacode.proxy.Nameable;
import dk.javacode.proxy.NameInterceptor;


public class NameGreeter implements Greeter, Nameable {

	private String name;
	
	@Override
	public void setName(String name) {
		this.name = name;
	}


	@Override
	@SimpleInterceptor(NameInterceptor.class)
	public String sayHello() {
		return "Hello " + name; 
	}

}
